package com.gp.ssmplus.base.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gp.ssmplus.base.core.mybatis.base.entity.AbstractEntity;
import com.gp.ssmplus.base.core.mybatis.common.TableAlias;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * APP用户-基础信息
 *
 * @author zyf
 */
@Data
@NoArgsConstructor
@TableName("app_user")
@TableAlias("user")
public class AppUser extends AbstractEntity {
    private static final long serialVersionUID = -735161640894047414L;

    @TableId(value = "userId", type = IdType.ID_WORKER)
    private Long userId;

    private String userName;

    private String userType;

    private Long companyId;

    private Long roleId;

    private Long deptId;

    private String nickName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long areaId;

    private Long cityId;

    private Long proId;


    private String areaName;

    private String avatar;


    private String email;

    private Integer sex;

    private String mobile;

    private String birthday;

    private String remark;

    private String position;

    private Long positionId;

    private String registerIp;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    private Integer status;

    private Long inviterId;

    private String shareCode;

    private String motto;

}
